package com.xianyun.site.support.common.define;

/**
 * 先做成枚举 后续会修改成数据库形式
 * @author mac_zyj
 */

public enum SystemTypeEnum {
    /**博客系统*/
    CLOD_BLOG_SYSTEM(0,"博客系统"),
    /**管理系统*/
    MANAGE_SYSTEM(1,"管理系统");

    private int typeId;

    private String typeName;

    SystemTypeEnum(int typeId, String typeName) {
        this.typeId = typeId;
        this.typeName = typeName;
    }

    public static String getTypeNameByTypeId(int typeId){
        for (SystemTypeEnum systemTypeEnum : values()){
            if (typeId == systemTypeEnum.typeId){
                return systemTypeEnum.typeName;
            }
        }
        return null;
    }
}
